@use '../../../scss/variables';
@use '../../../scss/utils';

.newsletter-wrapper {
  background: var(--background-3dp);
  padding: 40px 85px;
  overflow: hidden;
  position: relative;
  margin: 0 -85px;
  width: auto;

  @include utils.media(large) {
    margin: 0 -50px;
    padding: 40px 50px;
  }

  @include utils.media(medium) {
    margin: 0 -20px;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
  }
}

.newsletter-wrapper h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--color-1dp);
}

.newsletter-wrapper p {
  font-size: 15px;
  margin: 0;
  color: var(--color);
  font-weight: 500;
  line-height: 22px;
}

.newsletter-wrapper .hgroup,
.newsletter-form {
  display: inline-block;
  vertical-align: middle;
}

.newsletter-form {
  text-align: right;
  width: 40%;
  position: relative;
  margin-top: 5px;
}

.newsletter-wrapper .hgroup {
  width: 60%;
  float: left;
  position: relative;
}

.newsletter-form .form-control {
  border: 0;
  font-size: 14px;
  font-family: 'Source Sans Pro';
  height: 40px;
  padding: 10px 20px;
  background: var(--background);
  color: var(--color);
  width: calc(100% - 70px);
  // box-shadow: -2px 2px 3px var(--background);
  border-radius: 3px;
  max-width: 100%;
  vertical-align: middle;
  box-sizing: border-box;
  outline: 0;
}

.newsletter-form button {
  background: var(--primary-gradient);
  height: 40px;
  padding: 10px 18px;
  border: 0;
  color: #fff;
  margin-left: -45px;
  font-size: 14px;
  vertical-align: middle;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  transition: none;
  box-sizing: border-box;
  cursor: pointer;
  outline: 0;
}

.newsletter-form button:hover,
.newsletter-form button[disabled] {
  background: #111111;
}

.newsletter-form button .icon-success {
  display: none;
}

.newsletter-form .btn-success .fa-paper-plane {
  display: none;
}

.newsletter-form .btn-success[disabled] {
  background: var(--background);
  color: #1dd81c;
  pointer-events: none;
}
.newsletter-form .btn-success .icon-success {
  display: inline-block;
}

.newsletter-wrapper .envelope-bg {
  font-size: 180px;
  position: absolute;
  margin-top: -50px;
  margin-left: 60px;
  color: rgba(0,0,0,0.1);
  z-index: 0;
  transform: rotate(-30deg);
}

@media (max-width: 1020px) {
  .newsletter-wrapper .hgroup,
  .newsletter-form {
    width: 50%;
  }
}

@media (max-width: 990px) {
  .newsletter-wrapper .hgroup,
  .newsletter-form {
    width: 100%;
  }
  .newsletter-wrapper .hgroup {
    float: none;
    text-align: center;
  }
  .newsletter-form {
    margin-top: 30px;
    text-align: center;
  }
  .newsletter-form .form-control {
    margin-left: 0;
  }
  .newsletter-wrapper .envelope-bg {
    font-size: 280px;
  }
  .newsletter-form .form-control {
    max-width: 400px;
    width: calc(100% - 10px);
  }
}
